<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Report extends CI_Controller {
	function __construct(){
		parent::__construct();
		$this->load->library('Huashang/user');
		$this->user->checkLogin();
	}
	//载入报表
	public function index(){
	    $data['auth']=explode(',', $this->input->get('auth'));
		$this->load->view('report/index',$data);
	}
	
	//报表查询
	public function report_search(){
		$this->load->view('report/report_search');
	}

	//交收报表
	public function settlement_report(){
		$this->load->view('report/settlement_report');
	}

	//交收报表列表
	public function get_settlement_report_list()
    {
       echo '{
       	"total":10,
       	"rows":[{"member_name":"会员1","total_amount":1000,"total_bet":200.000,"total_money":"300.000.000","backwater":0.2,"total_prize":1000.000,"actual_profit":1000,"proportion":500.000,"company_backwater":0.1,"company_prize":100.000,"company_actual_profit":100.000}]
       }';
	}

	//分类报表
	public function classify_report(){
		$this->load->view('report/classify_report');
	}

	// //分类报表列表
	public function get_classify_report_list()
    {
       echo '{
       	"total":10,
       	"rows":[{"lottery_name":"时时彩","total_amount":1000,"total_bet":200.000,"total_money":"300.000.000","backwater":0.2,"total_prize":1000.000,"actual_profit":"1000.000.000","proportion":500.000,"company_backwater":0.1,"company_prize":100.000,"company_actual_profit":100.000}]
       }';
	}
}